#include "FLOW_core/flow_core_pch.h"
#include "FLOW_core/StrId.h"
#include "FLOW_core/DebugLogger.h"
#include "FLOW_core/LogMgr.h"
#include "StrIdMgrTest.h"

using namespace CORE;

//=============================================================================

CStrIdMgrTest::CStrIdMgrTest( )
{
}

//=============================================================================

CStrIdMgrTest::~CStrIdMgrTest( )
{
}

//=============================================================================

void CStrIdMgrTest::Test( void )
{
	CStrId str_id1( "Hola que tal!!!\n" );

	CStrId str_id2( "Hola que blas\n" );

	CStrId str_id3( "Tarariro" );

	CStrId str_id4( "Taroriro" );

	CStrId str_id5( "Tarariro" );

	bool equals = false;

	equals = str_id1 == str_id2;
	equals = str_id3 == str_id4;
	equals = str_id3 == str_id5;

	LOG_MGR->Initialize( );
	CDebugLogger p_logger;
	LOG_MGR->RegisterLogger( &p_logger );
	LOG( LOG_TYPE_INFO, "StrIdMgrTest", "%s -> %u", str_id1.String( ), str_id1.Hash( ) );
	LOG( LOG_TYPE_INFO, "StrIdMgrTest", "%s -> %u", str_id2.String( ), str_id2.Hash( ) );
	LOG( LOG_TYPE_INFO, "StrIdMgrTest", "%s -> %u", str_id3.String( ), str_id3.Hash( ) );
	LOG( LOG_TYPE_INFO, "StrIdMgrTest", "%s -> %u", str_id4.String( ), str_id4.Hash( ) );
	LOG( LOG_TYPE_INFO, "StrIdMgrTest", "%s -> %u", str_id5.String( ), str_id5.Hash( ) );
	LOG_MGR->Shutdown( );
}

//=============================================================================